# 关键字参数
# 1、这些关键字参数在函数内部自动组装为一个dict
def person(name, age, **kw):
    print('name:', name, 'age:', age, 'other:', kw)

person('Michael', 30)
person('Bob', 35, city='1')
extra = {'city': 'Beijing', 'job': 'Engineer'}
person('Jack', 24, **extra)

# 命名关键字参数 默认值
def foo(age,height,*,job,hob = '爱好'):
    print(f"age is {age}")
    print(f"height is {height}")
    print(f"job is {job}")
    print(f"hob is {hob}")

foo(18,1.88,job="aaa")
foo(18,1.88,job="bbb",hob = '唱、跳、rap')